<?


/**
 * Gtk窗体 创建器
 * 此文件根据 Glade窗口模版文件 自动产生，当 原Glade文件更改后，此文件也会及时重建。
 *
 * !注意：此文件由 JCAT 框架自动产生、维护，任何情况下都不应该手工编辑此文件，以免 JCAT 框架维护此文件时丢弃手工更改的内容。
 *
 * @author	JCAT_UIGtkGlade
 * @create	2008.10.31 14:53:09
 * @access	public
 */
class JCAT_GtkGlade_98a61f3bc97f40e9adfe23adbc4c0d1a extends JCAT_UIGtkWidgetCreator
{
	// 公共方法 ///////////////////////////////////////////////////////////
	/**
	 * what's this
	 * 
	 * @access	public
	 * @return	array
	 */
	public function JCAT_GtkGlade_98a61f3bc97f40e9adfe23adbc4c0d1a()
	{
		$this->arrWidgetTree = unserialize('a:1:{s:26:"GtkWindow:JJ_HistoryDialog";a:1:{s:15:"GtkTable:table1";a:1:{s:13:"GtkVBox:vbox1";a:2:{s:17:"GtkHPaned:hpaned1";a:2:{s:33:"GtkScrolledWindow:scrolledwindow1";a:1:{s:21:"GtkTreeView:TreeUsers";a:0:{}}s:17:"GtkHPaned:hpaned2";a:2:{s:33:"GtkScrolledWindow:scrolledwindow2";a:1:{s:20:"GtkTreeView:TreeDate";a:0:{}}s:33:"GtkScrolledWindow:HistoryScrolled";a:1:{s:26:"GtkTextView:MessageHistory";a:0:{}}}}s:25:"GtkHButtonBox:hbuttonbox1";a:1:{s:17:"GtkButton:button1";a:0:{}}}}}}') ;
		$this->arrWidgetIds = unserialize('a:13:{s:16:"JJ_HistoryDialog";s:9:"GtkWindow";s:6:"table1";s:8:"GtkTable";s:5:"vbox1";s:7:"GtkVBox";s:7:"hpaned1";s:9:"GtkHPaned";s:15:"scrolledwindow1";s:17:"GtkScrolledWindow";s:9:"TreeUsers";s:11:"GtkTreeView";s:7:"hpaned2";s:9:"GtkHPaned";s:15:"scrolledwindow2";s:17:"GtkScrolledWindow";s:8:"TreeDate";s:11:"GtkTreeView";s:15:"HistoryScrolled";s:17:"GtkScrolledWindow";s:14:"MessageHistory";s:11:"GtkTextView";s:11:"hbuttonbox1";s:13:"GtkHButtonBox";s:7:"button1";s:9:"GtkButton";}') ;
		$this->sTemplatePath = '/home/alee/Project/JeCat/jj/Resource/UITemplate/template.JJ_HistoryDialog.glade' ;
	}


	// 私有方法 ///////////////////////////////////////////////

	/**
	 * 创建窗体 GtkWindow:JJ_HistoryDialog
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkWindow
	 */
	protected function Create_JJ_HistoryDialog(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$JJ_HistoryDialog = new GtkWindow() ;

		$JJ_HistoryDialog->set_title('会话历史记录') ;
		$JJ_HistoryDialog->set_position(Gtk::WIN_POS_CENTER) ;

		$table1 = $this->GetWidget('table1',&$arrObjectForSignal) ;
		$JJ_HistoryDialog->add($table1) ;

		$JJ_HistoryDialog->connect( 'delete_event', array($TheView,'OnClose')  ) ;


		// 窗体名称
		if( isset($JJ_HistoryDialog) and $JJ_HistoryDialog->get_name()=='GtkWindow' )
		{
			$JJ_HistoryDialog->set_name('JJ_HistoryDialog') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($JJ_HistoryDialog) and !$JJ_HistoryDialog->get_data('creator') )
		{
			$JJ_HistoryDialog->set_data('creator',$this) ;
		}
					
		return $JJ_HistoryDialog ;
	}



	/**
	 * 创建窗体 GtkTable:table1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkTable
	 */
	protected function Create_table1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$table1 = new GtkTable( 1, 1, false ) ;

		$vbox1 = $this->GetWidget('vbox1',&$arrObjectForSignal) ;
		$table1->attach($vbox1, 0,1,0,1, Gtk::EXPAND | Gtk::FILL,Gtk::EXPAND | Gtk::FILL, 10,10) ;
		$table1->set_visible( true, false ) ;


		// 窗体名称
		if( isset($table1) and $table1->get_name()=='GtkTable' )
		{
			$table1->set_name('table1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($table1) and !$table1->get_data('creator') )
		{
			$table1->set_data('creator',$this) ;
		}
					
		return $table1 ;
	}



	/**
	 * 创建窗体 GtkVBox:vbox1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkVBox
	 */
	protected function Create_vbox1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$vbox1 = new GtkVBox() ;
		$vbox1->set_homogeneous(false) ;
		$vbox1->set_spacing(4) ;

		$hpaned1 = $this->GetWidget('hpaned1',&$arrObjectForSignal) ;
		$vbox1->pack_start( $hpaned1, true, true, 0 ) ;


		$hbuttonbox1 = $this->GetWidget('hbuttonbox1',&$arrObjectForSignal) ;
		$vbox1->pack_start( $hbuttonbox1, false, true, 0 ) ;

		$vbox1->set_visible( true, false ) ;


		// 窗体名称
		if( isset($vbox1) and $vbox1->get_name()=='GtkVBox' )
		{
			$vbox1->set_name('vbox1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($vbox1) and !$vbox1->get_data('creator') )
		{
			$vbox1->set_data('creator',$this) ;
		}
					
		return $vbox1 ;
	}



	/**
	 * 创建窗体 GtkHPaned:hpaned1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkHPaned
	 */
	protected function Create_hpaned1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$hpaned1 = new GtkHPaned() ;

		$scrolledwindow1 = $this->GetWidget('scrolledwindow1',&$arrObjectForSignal) ;
		$hpaned1->add1( $scrolledwindow1 ) ;


		$hpaned2 = $this->GetWidget('hpaned2',&$arrObjectForSignal) ;
		$hpaned1->add2( $hpaned2 ) ;

		$hpaned1->set_visible( true, false ) ;


		// 窗体名称
		if( isset($hpaned1) and $hpaned1->get_name()=='GtkHPaned' )
		{
			$hpaned1->set_name('hpaned1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($hpaned1) and !$hpaned1->get_data('creator') )
		{
			$hpaned1->set_data('creator',$this) ;
		}
					
		return $hpaned1 ;
	}



	/**
	 * 创建窗体 GtkScrolledWindow:scrolledwindow1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkScrolledWindow
	 */
	protected function Create_scrolledwindow1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$scrolledwindow1 = new GtkScrolledWindow() ;
		$scrolledwindow1->set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC) ;

		$TreeUsers = $this->GetWidget('TreeUsers',&$arrObjectForSignal) ;
		$scrolledwindow1->add_with_viewport($TreeUsers) ;
		$scrolledwindow1->set_size_request( 120, -1 ) ;
		$scrolledwindow1->set_visible( true, false ) ;


		// 窗体名称
		if( isset($scrolledwindow1) and $scrolledwindow1->get_name()=='GtkScrolledWindow' )
		{
			$scrolledwindow1->set_name('scrolledwindow1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($scrolledwindow1) and !$scrolledwindow1->get_data('creator') )
		{
			$scrolledwindow1->set_data('creator',$this) ;
		}
					
		return $scrolledwindow1 ;
	}



	/**
	 * 创建窗体 GtkTreeView:TreeUsers
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkTreeView
	 */
	protected function Create_TreeUsers(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$TreeUsers = new GtkTreeView() ;
		$TreeUsers->set_headers_clickable(true) ;
		$TreeUsers->set_visible( true, false ) ;
		$TreeUsers->connect( 'cursor_changed', array($TheView,'OnSelectUser')  ) ;


		// 窗体名称
		if( isset($TreeUsers) and $TreeUsers->get_name()=='GtkTreeView' )
		{
			$TreeUsers->set_name('TreeUsers') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($TreeUsers) and !$TreeUsers->get_data('creator') )
		{
			$TreeUsers->set_data('creator',$this) ;
		}
					
		return $TreeUsers ;
	}



	/**
	 * 创建窗体 GtkHPaned:hpaned2
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkHPaned
	 */
	protected function Create_hpaned2(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$hpaned2 = new GtkHPaned() ;

		$scrolledwindow2 = $this->GetWidget('scrolledwindow2',&$arrObjectForSignal) ;
		$hpaned2->add1( $scrolledwindow2 ) ;


		$HistoryScrolled = $this->GetWidget('HistoryScrolled',&$arrObjectForSignal) ;
		$hpaned2->add2( $HistoryScrolled ) ;

		$hpaned2->set_visible( true, false ) ;


		// 窗体名称
		if( isset($hpaned2) and $hpaned2->get_name()=='GtkHPaned' )
		{
			$hpaned2->set_name('hpaned2') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($hpaned2) and !$hpaned2->get_data('creator') )
		{
			$hpaned2->set_data('creator',$this) ;
		}
					
		return $hpaned2 ;
	}



	/**
	 * 创建窗体 GtkScrolledWindow:scrolledwindow2
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkScrolledWindow
	 */
	protected function Create_scrolledwindow2(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$scrolledwindow2 = new GtkScrolledWindow() ;
		$scrolledwindow2->set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC) ;

		$TreeDate = $this->GetWidget('TreeDate',&$arrObjectForSignal) ;
		$scrolledwindow2->add_with_viewport($TreeDate) ;
		$scrolledwindow2->set_size_request( 120, -1 ) ;
		$scrolledwindow2->set_visible( true, false ) ;


		// 窗体名称
		if( isset($scrolledwindow2) and $scrolledwindow2->get_name()=='GtkScrolledWindow' )
		{
			$scrolledwindow2->set_name('scrolledwindow2') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($scrolledwindow2) and !$scrolledwindow2->get_data('creator') )
		{
			$scrolledwindow2->set_data('creator',$this) ;
		}
					
		return $scrolledwindow2 ;
	}



	/**
	 * 创建窗体 GtkTreeView:TreeDate
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkTreeView
	 */
	protected function Create_TreeDate(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$TreeDate = new GtkTreeView() ;
		$TreeDate->set_headers_visible(false) ;
		$TreeDate->set_headers_clickable(true) ;
		$TreeDate->set_visible( true, false ) ;
		$TreeDate->connect( 'cursor_changed', array($TheView,'OnSelectDate')  ) ;


		// 窗体名称
		if( isset($TreeDate) and $TreeDate->get_name()=='GtkTreeView' )
		{
			$TreeDate->set_name('TreeDate') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($TreeDate) and !$TreeDate->get_data('creator') )
		{
			$TreeDate->set_data('creator',$this) ;
		}
					
		return $TreeDate ;
	}



	/**
	 * 创建窗体 GtkScrolledWindow:HistoryScrolled
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkScrolledWindow
	 */
	protected function Create_HistoryScrolled(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$HistoryScrolled = new GtkScrolledWindow() ;
		$HistoryScrolled->set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC) ;

		$MessageHistory = $this->GetWidget('MessageHistory',&$arrObjectForSignal) ;
		$HistoryScrolled->add_with_viewport($MessageHistory) ;
		$HistoryScrolled->set_size_request( 440, 500 ) ;
		$HistoryScrolled->set_visible( true, false ) ;


		// 窗体名称
		if( isset($HistoryScrolled) and $HistoryScrolled->get_name()=='GtkScrolledWindow' )
		{
			$HistoryScrolled->set_name('HistoryScrolled') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($HistoryScrolled) and !$HistoryScrolled->get_data('creator') )
		{
			$HistoryScrolled->set_data('creator',$this) ;
		}
					
		return $HistoryScrolled ;
	}



	/**
	 * 创建窗体 GtkTextView:MessageHistory
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkTextView
	 */
	protected function Create_MessageHistory(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$MessageHistory = new GtkTextView() ;
		$aTextBuffer = new GtkTextBuffer() ;
		$MessageHistory->set_buffer($aTextBuffer) ;
		$MessageHistory->set_editable(false) ;
		$MessageHistory->set_wrap_mode(Gtk::WRAP_CHAR);
		$MessageHistory->set_visible( true, false ) ;


		// 窗体名称
		if( isset($MessageHistory) and $MessageHistory->get_name()=='GtkTextView' )
		{
			$MessageHistory->set_name('MessageHistory') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($MessageHistory) and !$MessageHistory->get_data('creator') )
		{
			$MessageHistory->set_data('creator',$this) ;
		}
					
		return $MessageHistory ;
	}



	/**
	 * 创建窗体 GtkHButtonBox:hbuttonbox1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkHButtonBox
	 */
	protected function Create_hbuttonbox1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$hbuttonbox1 = new GtkHButtonBox() ;
		$hbuttonbox1->set_homogeneous(false) ;
		$hbuttonbox1->set_spacing(0) ;
		$hbuttonbox1->set_layout(Gtk::BUTTONBOX_END) ;

		$button1 = $this->GetWidget('button1',&$arrObjectForSignal) ;
		$hbuttonbox1->pack_start( $button1, true, true, 0 ) ;

		$hbuttonbox1->set_visible( true, false ) ;


		// 窗体名称
		if( isset($hbuttonbox1) and $hbuttonbox1->get_name()=='GtkHButtonBox' )
		{
			$hbuttonbox1->set_name('hbuttonbox1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($hbuttonbox1) and !$hbuttonbox1->get_data('creator') )
		{
			$hbuttonbox1->set_data('creator',$this) ;
		}
					
		return $hbuttonbox1 ;
	}



	/**
	 * 创建窗体 GtkButton:button1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkButton
	 */
	protected function Create_button1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$button1 = new GtkButton() ;
		$button1->set_label('关闭') ;
		$button1->set_visible( true, false ) ;
		$button1->connect( 'clicked', array($TheView,'OnClose')  ) ;


		// 窗体名称
		if( isset($button1) and $button1->get_name()=='GtkButton' )
		{
			$button1->set_name('button1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($button1) and !$button1->get_data('creator') )
		{
			$button1->set_data('creator',$this) ;
		}
					
		return $button1 ;
	}




}

?>